<template>
  <div class="demo">
    <h2>姓名：{{ name }}</h2>
    <button @click="showName">show - name</button>
  </div>
</template>



<script>

    export default {
        name:'My',
        data(){
            return {
                name:'张三'
            }
        },

    }
</script>
